package com.amazon.trietree.zkStub;

import java.io.IOException;

/**
 * Created with IntelliJ IDEA.
 * User: Tylaar
 * Date: 11/9/12
 * Time: 2:49 PM
 * Company: Amazon.com
 */
public class CuratorLeaderThread implements Runnable{
    private CuratorLeaderSelector selector;

    public CuratorLeaderThread(CuratorLeaderSelector selector) {
        this.selector = selector;
    }

    @Override
    public void run() {
        try {
            selector.start();
        } catch (IOException e) {
            e.printStackTrace();  //To change body of catch statement use File | Settings | File Templates.
        }
    }
}
